package me.qixiaobo;

import io.undertow.Handlers;
import io.undertow.Undertow;
import io.undertow.server.handlers.resource.PathResourceManager;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.concurrent.ConcurrentHashMap;

/**
 *
 */
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class);


        // 可以实现文件系统
        // File file = new File("/");
        // Undertow server = Undertow.builder().addHttpListener(8080, "localhost")
        //         .setHandler(Handlers.resource(new PathResourceManager(file.toPath(), 100))
        //                 .setDirectoryListingEnabled(true))
        //         .build();
        // server.start();

    }
}
